home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / lib / makefile.bc < prev    next >
Encoding:
Makefile  |  1992-03-04  |  2.7 KB  |  103 lines

  1. #----------------------------------------------------------------------------
  2. #
  3. #  NSSDC/CDF            Borland C/C++ makefile for the CDF library
  4. #
  5. #  Version 1.0, 14-Feb-92, Hughes STX
  6. #
  7. #  Modification history:
  8. #
  9. #   V1.0  14-Feb-92, A Warnock    Original version.
  10. #             J Love
  11. #
  12. #----------------------------------------------------------------------------
  13.  
  14. #----------------------------------------------------------------------------
  15. # Macros.
  16. #----------------------------------------------------------------------------
  17.  
  18. LIB= tlib
  19.  
  20. MODEL= l
  21. CFLAGS= -c -m$(MODEL) -w -w-sig -w-cln -g1 -j1
  22.  
  23. INCLUDEsys= $(CCLOC)\include
  24. INCLUDEcdf= ..\include
  25.  
  26. VIO_h= $(INCLUDEcdf)/vio.h
  27. EPOCHU_h= $(INCLUDEcdf)/epochu.h
  28. DIRUTILS_h= $(INCLUDEcdf)/dirutils.h
  29. CDF_h= $(INCLUDEcdf)/cdf.h
  30. CDFDIST_h= $(INCLUDEcdf)/cdfdist.h $(CDF_h) $(EPOCHU_h) $(DIRUTILS_h)
  31. CDFLIB_h= $(INCLUDEcdf)/cdflib.h $(CDFDIST_h) $(VIO_h)
  32.  
  33. #----------------------------------------------------------------------------
  34. # Which compiler to use?  BCCX runs in protected mode, BCC runs in real mode.
  35. #----------------------------------------------------------------------------
  36.  
  37. CC = bcc
  38. #CC = bccx
  39.  
  40. #----------------------------------------------------------------------------
  41. # Targets/dependencies.
  42. #----------------------------------------------------------------------------
  43.  
  44. all:    libcdf.lib
  45.  
  46. libcdf.lib:   cdflib.obj cdf_c_if.obj cdfclo.obj cdfcon.obj cdfcre.obj \
  47.           cdfdel.obj cdfget.obj cdf_i_if.obj cdflibx.obj \
  48.           cdfope.obj cdfput.obj cdfrw.obj cdfsel.obj cdfstr.obj \
  49.           cdfvalid.obj cdfxdr.obj vio.obj epochu.obj dirutils.obj
  50.     del libcdf.lib
  51.     $(LIB) libcdf +cdflib
  52.     $(LIB) libcdf +cdflibx
  53.     $(LIB) libcdf +cdfput
  54.     $(LIB) libcdf +cdfope
  55.     $(LIB) libcdf +cdf_c_if
  56.     $(LIB) libcdf +cdfclo
  57.     $(LIB) libcdf +cdfcon
  58.     $(LIB) libcdf +cdfcre
  59.     $(LIB) libcdf +cdfdel
  60.     $(LIB) libcdf +cdfget
  61.     $(LIB) libcdf +cdf_i_if
  62.     $(LIB) libcdf +cdfrw
  63.     $(LIB) libcdf +cdfsel
  64.     $(LIB) libcdf +cdfstr
  65.     $(LIB) libcdf +cdfvalid
  66.     $(LIB) libcdf +cdfxdr
  67.     $(LIB) libcdf +vio
  68.     $(LIB) libcdf +epochu
  69.     $(LIB) libcdf +dirutils
  70.  
  71. .c.obj:
  72.     $(CC) $(CFLAGS) -I$(INCLUDEsys) -I$(INCLUDEcdf) $<
  73.  
  74. cdf_c_if.obj:    $(CDFLIB_h)
  75. cdf_i_if.obj:    $(CDFLIB_h)
  76. cdf_f_if.obj:    $(CDFLIB_h)
  77. cdfclo.obj:    $(CDFLIB_h)
  78. cdfcon.obj:    $(CDFLIB_h)
  79. cdfcre.obj:    $(CDFLIB_h)
  80. cdfdel.obj:    $(CDFLIB_h)
  81. cdfget.obj:    $(CDFLIB_h)
  82. cdflib.obj:    $(CDFLIB_h)
  83. cdflibx.obj:    $(CDFLIB_h)
  84. cdfope.obj:    $(CDFLIB_h)
  85. cdfput.obj:    $(CDFLIB_h)
  86. cdfrw.obj:    $(CDFLIB_h)
  87. cdfsel.obj:    $(CDFLIB_h)
  88. cdfstr.obj:    $(CDFLIB_h)
  89. cdfvalid.obj:    $(CDFLIB_h)
  90. cdfxdr.obj:    $(CDFLIB_h)
  91. vio.obj:    $(VIO_h)
  92. epochu.obj:    $(CDFLIB_h)
  93. dirutils.obj:    $(DIRUTILS_h)
  94.  
  95. #----------------------------------------------------------------------------
  96. # Clean up.
  97. #----------------------------------------------------------------------------
  98.  
  99. clean:
  100.     del *.obj
  101.     del *.lib
  102.     del *.bak
  103.